package cn.com.infcn.spider.domain;

public class RegexDomain {

	private String name; // 标识

	private String regex; // 正则表达式

	private int flag; // 0 不处理 1 包含 2 不包含

	private int pageType;// 0 普通页面 1 列表页 2内容页

	private int gatherType; // 0.html 1.ajax

	public RegexDomain(String line) {
		String[] split = line.split("\\s+");
		this.name = split[0];
		this.regex = split[1];
		this.flag = Integer.parseInt(split[2]);
		this.pageType = Integer.parseInt(split[3]);
		this.gatherType = Integer.parseInt(split[4]);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRegex() {
		return regex;
	}

	public void setRegex(String regex) {
		this.regex = regex;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public int getPageType() {
		return pageType;
	}

	public void setPageType(int pageType) {
		this.pageType = pageType;
	}

	public int getGatherType() {
		return gatherType;
	}

	public void setGatherType(int gatherType) {
		this.gatherType = gatherType;
	}

}
